<template>
  <a-config-provider :locale="zhCN">
    <a-spin :spinning="spinning" tip="正在加载中...." :delay="2000">
      <RouterView />
    </a-spin>
  </a-config-provider>
</template>
<script setup lang="ts">
import { useSpinningStore } from '@/stores/useSpinning'
import { RouterView } from 'vue-router'
import { storeToRefs } from 'pinia'
import zhCN from 'ant-design-vue/es/locale/zh_CN' //汉化
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn'
dayjs.locale('zh-cn')
const { spinning } = storeToRefs(useSpinningStore())
</script>
<style>
* {
  margin: 0;
  padding: 0;
}
.ant-steps.ant-steps-small .ant-steps-item-custom .ant-steps-item-icon > .ant-steps-icon {
  font: 16px !important;
}
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
</style>
